package com.efei.jdbc.sql;

public class SqlStatic extends SqlCommon{

    private StringBuilder sqlText = new StringBuilder();

    public SqlStatic(SqlType sqlType) {
        super(sqlType);
    }

    public static SqlStatic of(String sql, SqlType sqlType){
        SqlStatic ss = new SqlStatic(sqlType);
        ss.sqlText.append(sql);
        return ss;
    }

    public static SqlStatic of(String sql){
        SqlStatic ss = new SqlStatic(SqlType.UNKNOWN);
        ss.sqlText.append(sql);
        return ss;
    }

    @Override
    public StringBuilder getSql() {
        return sqlText;
    }
}
